# -*- coding: utf-8 -*-

def bubblesort(A):

	for i in range(0, len(A) - 1):
		for j in range(len(A) - 1, i, -1):
			if A[j] < A[j - 1]:
				A[j], A[j - 1] = A[j - 1], A[j]
				pass
			pass
		pass
	pass
	print A


A = [5,2,4,6,1,3]

B = [3,9,6,12,15,21,30]

bubblesort(A)
bubblesort(B)